#include <iostream>
using namespace std;
int main()
{
setlocale(LC_ALL,"");
double S,P,a,b;
cout<<"Dlina : ";
cin>>a;
cout<<"Shirina : ";
cin>>b;
P=a+a+b+b;
S=a*b;
cout<<"P = "<<P<<""<<endl;
cout<<"S = "<<S<<""<<endl;
return 0;
}
